home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / init.d / sudo < prev    next >
Encoding:
Text File  |  2011-02-20  |  551 b   |  33 lines

  1. #! /bin/sh
  2.  
  3. ### BEGIN INIT INFO
  4. # Provides:          sudo
  5. # Required-Start:    $local_fs $remote_fs
  6. # Required-Stop:
  7. # X-Start-Before:    rmnologin
  8. # Default-Start:     2 3 4 5
  9. # Default-Stop:
  10. ### END INIT INFO
  11.  
  12. N=/etc/init.d/sudo
  13.  
  14. set -e
  15.  
  16. case "$1" in
  17.   start)
  18.     # make sure privileges don't persist across reboots
  19.     if [ -d /var/lib/sudo ]
  20.     then
  21.                 find /var/lib/sudo -exec touch -t 198501010000 '{}' \;
  22.     fi
  23.     ;;
  24.   stop|reload|restart|force-reload)
  25.     ;;
  26.   *)
  27.     echo "Usage: $N {start|stop|restart|force-reload}" >&2
  28.     exit 1
  29.     ;;
  30. esac
  31.  
  32. exit 0
  33.